package com.string;

import com.sun.xml.internal.ws.api.model.wsdl.WSDLOutput;

import java.util.Scanner;

public class Test {
    public static void main(String[] args) {

        String st = "TomCat";
        Scanner input = new Scanner(System.in);
        System.out.println("请输文件名");
        String fileName = input.next();

        int index = fileName.lastIndexOf(".");


    }
}


//length()将返回字符串的长度。这个长度代表字符数，包括空格
